package net.jxtz.jxtzos.entity.spider;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author lmh
 * @version 1.0
 * @date 2021-09-15 14:33
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
public class SpiderLogServe {

    public SpiderLogServe(String spiderName, String spiderCode, Long userId) {
        this.spiderName = spiderName;
        this.spiderCode = spiderCode;
        this.userId = userId;
    }

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    private String spiderName;

    private String spiderCode;

    private Long userId;

    private Integer count;

    /**
     * true 为 已执行
     * false 为 未执行
     */
    @TableField(value = "is_execute")
    private Boolean execute;

    @TableField(fill = FieldFill.INSERT)
    private Integer createTime;

}
